<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="<?=gurl('css');?>/admin.css" />
</head>
<body>
	<h3 style="background:#E5ECF3; padding:5px; font-size:12px;">> <a href="<?=site_url(rnadminpath().'/main/show/main');?>">首页</a> > <a href="#">管理员列表</a></h3>
	<div style="margin-top:10px;padding:5px;border:1px solid #9FACB7;">
		<ul class="listmenu">
			<li>编号</li>
			<li>用户名</li>
			<li>Email</li>
			<li>添加时间</li>
			<li>最后登录</li>
			<li class="lastitem">操作</li>
		</ul>
		<div class="clear"></div>
		<? if(is_array($items) && count($items)>0):?>
		<? foreach ($items as $item):?>
		<ul class="listitem">
			<li><?=$item['id'];?></li>
			<li><?=$item['username'];?></li>
			<li><?=$item['email'];?></li>
			<li><?=date("Y-m-d H:i",$item['regtime']);?></li>
			<li><? if($item['lastlogin'] == 0):?>从未登录<? else:?><?=date("Y-m-d H:i",$item['lastlogin']);?><? endif;?></li>
			<li class="lastitem">
				<a href="<?=site_url(rnadminpath().'/managers/edit/'.$item['id']);?>">编辑</a>
				<a href="<?=site_url(rnadminpath().'/managers/delete/'.$item['id']);?>" onClick="return confirm('确认删除吗');">删除</a>
			</li>
		</ul>
		<div class="clear"></div>
		<? endforeach;?>
		<? endif;?>
	</div>
	<div class="pagestring">
		<?=$pagestring;?>
	</div>
</body>
</html>
